package org.exercise.record.repository;
import org.exercise.record.domain.User;
import org.apache.ibatis.annotations.Mapper;
import org.springframework.stereotype.Repository;

import java.util.List;

@Mapper
@Repository
public interface UserDao {
    List<User> listUser();
    User getByUsername(String username);

    // 为登录注册提供支持
    User getByUnameAndPassword(String username, String password);

    List<User> findByEmailContaining(String email);

    int insertUser(User rUser);
}
